# Python中的for循环用于迭代，可直接遍历范围或集合
for i in range(5):
    print("Number: ", i)
i = 0

# 使用while循环打印0到4的数字
while i < 5:
    print("Nuumber:", i)
    i += 1

# 迭代字符串
text ="hello"
for char in text:
    print(char)

#迭代列表
numbers = [10,20,30,40,50]
for number in numbers:
    print("Number:",number)